</div>
<table cellpadding="0" cellspacing="0">
    <tr valign="top">
        <td style="padding:0 10px 0 14px">
            <a href="/"><img src="<?=$config["logo_small"]?>" title="<?=$config["site_name"]?>" alt="<?=$config["site_name"]?>"></a>
        </td>
        <td style="padding-top:22px;padding-left:9px">
			<?=$search_box?>
        </td>
    </tr> 
</table>

<table cellpadding="0" cellspacing="0" width="100%">
    <tr valign="top">
		<td class="l">
		<?=$left?>
		</td>
        <td class="r">
			<div class="hideLong">
			    <h1 class="title"><?=$file_info->name?></h1>
			<div>
	      	<b><?=$lang["file_info_basic"]?>:</b><br/>
		  	<?=$lang["file_info_type"]?>:&nbsp;<?=$file_info->type?><br/>
		   	<?=$lang["file_info_size"]?>:&nbsp;<?=$file_info->size?><br/>
		  	<?=$lang["file_info_source"]?>:&nbsp;<?=$file_info->site?><br/>
		   	<?=$lang["file_info_created"]?>:&nbsp;<?=$file_info->created?><br/>
		   	<?=$lang["file_info_checked"]?>:&nbsp;<?=$file_info->checked?>[<font color="<?=$bol_file_status == OK ? "green" : "red" ?>"><?=$str_file_status?></font>]<br/>
			<br/>
			<?php if(isset($file_info->source->url)) {?>
			<div class="url">
				<b><?=$lang["file_info_from"]?>:</b><br/>
			 	<?php
			 	foreach ($file_info->source->url as $url) {
			 	?>
				<a href="/?api=download&link=<?=base64_encode($url)?>" rel="nofollow" class="url" target="_blank"><?=$url?></a><br/>
				<?php } ?>
			</div>
			<br/>
			<?php } ?>
			<div style="width:750px;line-height:150%">
			    <b><?=$lang["file_info_detail"]?>:</b><br/>
			    <?php
			    foreach($file_info->data as $record) {
			    	print $record->name."<br />";
			    	if($record->intro && trim($record->intro) != trim($record->name)) {
			    		print $record->intro."<br />";
			    	}
			    }
			    ?>
			</div>			
			<br/>
			<div><b><?=$lang["share_links"]?>:</b></div>
			<div class="lbox">
				<table>
				<tr>
				<td class="small tint right"><?=$lang["share_url"]?>:</td>
				<td>
				<input type="text" class="select-content share-input" id="share-links-url" value="http://<?=$config["domain"]?><?=get_rewrite_url("/detail.php?fid=".$file_info->fid, $config["rewrite"])?>" readonly="readonly" style="width:564px"/>
				<button class="b" id="clip-share-link-url" style="vertical-align:top;"><?=$lang["copy"]?></button>
				</td>
				</tr>
				<tr>
				<td class="small tint right"><?=$lang["share_html"]?>:</td>
				<td>
				<input type="text" class="select-content share-input" id="share-links-html" value="&lt;a href='http://<?=$config["domain"]?><?=get_rewrite_url("/detail.php?fid=".$file_info->fid, $config["rewrite"])?>&from=html' target='_blank'&gt;<?=$file_info->name?>&lt;/a&gt;" readonly="readonly" style="width:564px"/>
				<button class="b" id="clip-share-link-html" style="vertical-align:top;"><?=$lang["copy"]?></button>
				</td>
				</tr>
				<tr>
				<td class="small tint right"><?=$lang["share_ubb"]?>:</td>
				<td>
				<input type="text" class="select-content share-input" id="share-links-forum" value="[URL=http://<?=$config["domain"]?><?=get_rewrite_url("/detail.php?fid=".$file_info->fid, $config["rewrite"])?>&from=forum]<?=$file_info->name?>[/URL]" readonly="readonly" style="width:564px"/>
				<button class="b" id="clip-share-link-forum" style="vertical-align:top;"><?=$lang["copy"]?></button>
				</td>
				</tr>
				</table>
				<hr class="lhr" />
				<div id="socialDivButtons" class="share-block" style="margin-left:60px;width:100%">
				<?=$config["share"]?>
				<div style="text-align:right;margin-right:100px">
				<button class="b" id="alert_file" style="vertical-align:top;" onclick="$('#alert_file').colorbox({href:'http://<?=$support?>/upload.php?type=report&lang=<?=$config["language"]?>',width:500, height:300, title:'<?=$lang["file_report"]?>', iframe: true, close:'<?=$lang["close"]?>'});"><?=$lang["file_report"]?></button>
				</div>
				</div>
			</div>
		    <br />
			<div style="margin-bottom:6px">
			  <b><?=$lang["file_download_list"]?>:</b>
			</div>		
			<div class="links">
			<table class="ftbl" width="100%">
			    <tr>
			      <td  class="br bb left"><?=$lang["file"]?>&nbsp;</td>
			      <td  class="center small oneLine bb br"><?=$lang["file_info_size"]?></td>
			      <td class="center small oneLine bb"><?=$lang["download"]?></td>
			    </tr>
			    <?php foreach($file_info->data as $record) {?>
			    <tr>
			      <td>
		          	<a href="<?=get_rewrite_url("/download.php?link=".base64_encode($record->url), $config["rewrite"])?>" rel="nofollow" target="_blank">
				  	<?=$record->url?>
					</a>
			      </td>
			      <td width="130" class="oneLine center"><?=$record->size?></td>
			      <td width="130" class="oneLine center">
					<a href="<?=get_rewrite_url("/download.php?link=".base64_encode($record->url), $config["rewrite"])?>" rel="nofollow" target="_blank">
						<button style="margin:0;color:#444" class="b download"><?=$lang["download"]?></button>
					</a>
				  </td>
			    </tr>
			    <?php } ?>
			</table>
			<br/>
		    <div style="margin-bottom:5px"><b><?=$lang["copy_share_links"]?>:</b></div>
			<textarea rows="6" cols="75" class="select-content" id="copy-links"  readonly="true"><?php foreach($file_info->data as $record) {?><?=$record->url."\r\n"?><?php } ?></textarea>
		    <div class="copy-holder" style="margin-bottom:5px">
		      <button class="b" id="clip-links" style="vertical-align:top;"><?=$lang["copy_to_clipboard"]?></button>
		    </div>
		</td>
	</tr>
	<tr>
      <td></td>
	  <td colspan="2">
        <div style="width:750px;">
		<div class="latest">
 			<div class="latest-searches">
    		<b><?=$lang["last_searches"]?></b>
    		<ul class="latest">
    			<?php foreach($last_searches as $keyword) {?>
		        <li>
		          <a href="<?=get_rewrite_url("/search.php?word=".urlencode($keyword), $config["rewrite"])?>"><?=$keyword?></a>
		        </li>
		        <?php } ?>
		    </ul>
  			</div>
  			<div class="latest-downloads">
    		<b><?=$lang["last_downloads"]?></b>
    		<ul class="latest">
    			<?php foreach($last_downloads as $file) {?>
        		<li>
          		<a href="<?=get_rewrite_url("/detail.php?fid=".$file->fid, $config["rewrite"])?>" target="_blank"><?=$file->name?></a>
        		</li>
        		<?php } ?>
		    </ul>
		  </div>
		</div>
        </div>
    </td>
  </tr>
  <tr>
  <td></td>
  <td>
  <br />
  <br />
  <div class="ftr" style="width: 750px;" align="center"> 
  <?=$copyright?>
  </div>
  </td>
  </tr>
</table>